package utils;


import android.content.Context;

import com.bumptech.glide.load.model.stream.BaseGlideUrlLoader;

/**
 * Created by emily on 2016/12/6.
 */

public interface MyDetalModel {
    public String buildUrl(int width, int height);

    public class MyUrlLoder extends BaseGlideUrlLoader<MyDetalModel> {

        public MyUrlLoder(Context context) {
            super(context);
        }

        @Override
        protected String getUrl(MyDetalModel model, int width, int height) {
            return model.buildUrl(width, height);
        }
    }

}
